﻿using System.Collections;
using UnityEngine;

namespace Core.Blocker
{
    public class BlockerHelper : IBlocker
    {
        private bool _isBlocked;

        public void Unblock()
        {
            _isBlocked = true;
        }


        public IEnumerator WaitUnblocked()
        {
            while (!_isBlocked)
            {
                yield return null;
            }
        }
    }
}